{strip}
<script src="{$siteroot}/includes/js/admin/ajax.js" type="text/javascript" ></script>
{/strip}
{literal}
<script type="text/javascript">
function followusfunction(pageURL,title)
{
	window.open(pageURL,'_blank');	
}

function tradecatfunction(catname)
{

	var newcatname = catname;
	var stringreplace = newcatname.replace(/ /g,"-");
	var stringreplace1 = stringreplace.replace(/&/g,"and");
	var stringreplace2 = stringreplace1.toLowerCase();
	//window.location.href=SITEROOT +'/'+stringreplace2;
	window.location.href=SITEROOT+'/findtradesmans/'+stringreplace2;
}
</script>
{/literal}

</head>
<body>
<!-- HEADER GOES HERE -->
<header>
	<section class="maincontainer">
    	<section class="topportion">
        	<section class="logo">
            <a href="{$siteroot}/">
	         {if $imageDetails neq ''}
                <img src="{$siteroot}/includes/image.php?width=280&amp;height=82&amp;image={$siteroot}/uploads/logo/{$imageDetails}"/>
              {else}
                 <img src="{$siteroot}/templates/default/images/logo.png" />
              {/if}
            </a></section>
            <section class="topright">
            {if $smarty.session.getbids_id eq ''}	
            	<section class="top_tradesmen"><a href="{$siteroot}/register/"><img src="{$siteroot}/templates/default/images/provider-signup-get-bids.png" /></a></section>

            {else}
            	<section class="top_tradesmen" >Welcome <a {if $smarty.session.user_type eq '3'} href="{$siteroot}/myaccount/" {else} href="{$siteroot}/profile/{$comapnyname|strtolower}" {/if}>{$getuserdet.first_name|ucfirst} </a>{if $getuserdet.user_type eq '4'} | {$getuserdet.planname} | Lead Balance ({$getuserdet.leads}) {/if} | <a href="{$siteroot}/signin/signout/">Logout</a></section>
            {/if}    <!--{if $getuserdet.user_type eq '4'} | <a href="{$siteroot}/leads/">Left Leads ({$getuserdet.leads})</a>{/if}-->
            </section>
            <section class="clear"></section>
        </section>
    </section>
    <nav>
    	<section class="maincontainer">
        	<section class="navi_left">
            	<ul class="topmenu">
                	<li class="item1"><a href="{$siteroot}/" {if $active eq 'home' || $active eq ''} class="select" {/if}>Home</a></li>
                    {if $smarty.session.user_type eq '3'}	  <li class="item2"><a href="{$siteroot}/post-a-job/" {if $active eq 'postajob'} class="select" {/if}>Post A Job</a></li> {/if}
                    {if $smarty.session.user_type eq '4' || $smarty.session.user_type eq ''} <li class="item3"><a href="{$siteroot}/jobs/findjobs/" {if $active eq 'findjobs'} class="select" {/if}>Find A Job</a></li>{/if}					
                    {if $smarty.session.user_type eq '3' || $smarty.session.user_type eq ''}<li class="item4"><a href="{$siteroot}/findtradesman/" {if $active eq 'findatradesman'} class="select" {/if}>FIND A LOWER COST SUPPLIER</a></li> {/if}
                    <li class="item5"><a href="{$siteroot}/how-it-works/" {if $active eq 'howitworks'} class="select" {/if}>How It Works</a></li>
                    <li class="item6"><a href="{$siteroot}/contactus/" {if $active eq 'contactus'} class="select" {/if}>CONTACT US</a></li>
                    <li class="item9"><a href="{$siteroot}/blogs/" {if $active eq 'blogs'} class="select" {/if}>Blogs</a></li>
                    {if $smarty.session.getbids_id eq ''}	
                    <li class="item7"><a href="{$siteroot}/signin/" {if $active eq 'login'} class="select" {/if}>LOGIN</a></li>
                    {/if}
                    {if $smarty.session.getbids_id neq ''}	
                    <li class="item8"><a {if $smarty.session.user_type eq '3'} href="{$siteroot}/myaccount/" {else} href="{$siteroot}/profile/{$comapnyname|strtolower}" {/if} {if $active eq 'myaccount'} class="select" {/if}>My Account</a></li>
                    {/if}
                </ul>
            </section>
        </section>
    </nav>
</header>
